#if !defined(AFX_DEVWORDSTATEDLG_H__6DA6FF85_5E31_410F_8B56_FABA9A784844__INCLUDED_)
#define AFX_DEVWORDSTATEDLG_H__6DA6FF85_5E31_410F_8B56_FABA9A784844__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DevWordStateDlg.h : header file
//
#include "SxGroupBox.h"
#include "DevSmallPTZ.h"
/////////////////////////////////////////////////////////////////////////////
// CDevWordStateDlg dialog

class CDevWordStateDlg : public CDialog
{
// Construction
public:
	void Disconnect();
	void DevLogin();
	void ReConnect();
	void SetButtonVisible(bool bVisible);
	void ShowDevInfo();
	void ShowWorkState();
	CDevWordStateDlg(CWnd* pParent = NULL);   // standard constructor
	~CDevWordStateDlg();   // standard constructor

	bool	m_bForMapAlarm;
	bool	m_bImportantAlarm;
	int		m_nServerID;
	bool	m_bWorkState;
	LONG	m_lPlayHandle;
	bool	m_bNeedPlay;
	LONG	m_lUserID;
	CBrush	m_brush; 
	int		m_nAlmRecID;
// Dialog Data
	//{{AFX_DATA(CDevWordStateDlg)
	enum { IDD = IDD_DEV_STATE };
	CDevSmallPTZ	m_SmallPTZCtrl;
	CSxGroupBox	m_WorkState;
	CSxGroupBox	m_DevInfo;
	CListCtrl	m_listWorkStateCtrl;
	CListCtrl	m_listDevInfoCtrl;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDevWordStateDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void ShowPTZCtrl(bool bShow);
	bool	m_bInPTZCtrl;
	// Generated message map functions
	//{{AFX_MSG(CDevWordStateDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClose();
	afx_msg void OnBtnConnect();
	afx_msg void OnBtnDisconnect();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnBtnEdit();
	afx_msg void OnBtnExit();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnBtnPTZ();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DEVWORDSTATEDLG_H__6DA6FF85_5E31_410F_8B56_FABA9A784844__INCLUDED_)
